<!DOCTYPE html>
<html>
<head>
    <title>退货申请处理</title>
    <#include "../common.ftl">
</head>
<body class="childrenBody">

<form class="layui-form">
    <blockquote class="layui-elem-quote quoteBox">
        <form class="layui-form">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" id="id" name="id" class="layui-input searchVal" placeholder="服务单号"/>
                </div>

                <div class="layui-input-inline">
                    <select name="state" id="state">
                        <option value="">处理状态</option>
                        <option value="0">待处理</option>
                        <option value="1">已同意</option>
                        <option value="2">已拒绝</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="text" id="userName" name="userName" class="layui-input searchVal" placeholder="用户账号"/>
                </div>
                <a class="layui-btn search_btn" data-type="reload">
                    <i class="layui-icon">&#xe615;</i> 搜索
                </a>
            </div>
        </form>
    </blockquote>

    <!-- 数据表格 -->
    <table id="ResolveOrList" class="layui-table" lay-filter="ResolveOr">
    </table>
    <script type="text/html" id="toolbarDemo">
        <div class="layui-btn-container">
            <a class="layui-btn layui-btn-normal delNews_btn" lay-event="del">
                <i class="layui-icon">&#xe640;</i>
                删除
            </a>
        </div>
    </script>
    <!--操作-->
    <script id="ResolveOrListBar" type="text/html">
        {{# if (d.state == 0) { }}
        <a class="layui-btn layui-btn-xs layui-btn-success" id="edit" lay-event="yes">同意</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="no">拒绝</a>
        {{# } else { }}
        <a class="layui-btn layui-btn-xs layui-btn-info" lay-event="content">备注</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
        {{# } }}
    </script>
</form>

<script type="text/javascript" src="${ctx}/js/orders/resolve.or.js"></script>
</body>
</html>